If you are deploying a Role Assignment at the same time, it could be because the role already exists.
https://github.com/Azure/bicep/discussions/11429
A workaround is to either generate a new name, or manually delete the Role Assignment (it will appear in the IAM blade, although the identity the role is tied to, will be unknown if your event grid resource has been deleted).