Bad compass health in Ardupilot SITL

I am frequently using Ardupilot SITL with my custom model and connected via UDP port. A frequent problem that I keeps popping up is the issue of

Bad compass Health and Unhealthy GPS Signals

The thing that confuses me is why for SITL should there be any issues with compass health or even GPS given that all signals are simulated?

I’ve looked at multiple sources where I just have to simply wipe the EEPROM.bin before launching another simulation, and I’ve done that dozens of times. Sometimes it works flawlessly, and sometimes it just does not.

I hope someone could shed a light on why this is, and potentially there might be some wrong configurations from my side.