A history of spyware and rootkits are fairly irrelevant on a device that you’ve completely replaced the OS and locked the bootloader on.
There’s not really any entrypoint for spyware or a rootkit in that scenario, no?
Phone turns on -> locked bootloader can only boot a signed OS loader (signed by Graphene private key), then exits -> signed Graphene OS boots (signed by Graphene private key) -> from there you’re booted into GrapheneOS which is entirely under their (or your) control for OS updates, apps, security measures, etc.