I also got this error using Rider!
This tread solved it : https://forums.unrealengine.com/t/completely-random-error-from-androiderrorreport-h-trying-to-compile-project/688438/3
Rider added an include and you don’t see it because it collapses all includes by default