Came across a similar issue, except that I got an error of [simulator_mavlink] poll timeout 0, 25
For me it’s caused by inserting px4_usleep(10_ms) in a while loop, and removing the while loop everything returned to normal.
However, if the px4_usleep can be blamed, then the simulator should never be running as you can find px4_usleep here and there in PX4 code.
Still looking for an answer.