I spent a few days working this out. I moved my project to a new PC, and UE5.1.0 kept crashing at random intervals, with seemingly random error error messages. I narrowed it down to the ‘iCue’ software that came with the PC, which controls the fan/motherboard LEDs etc. As soon as I disabled that, it’s fine.
Just posting this in case it helps someone else.