Some users experienced various stability issues with v5.1.0, eg micro freezes, crashes, whole system freezes and other weird things, the main reason of this is removed
std::this_thread::yield call. This call was removed because of little increased hashrate and all our test systems passed tests with this change.
This call added back in v5.1.1, but if your system was work stable with v5.1.0 and new version gives little less hasrate, you can restore v5.1.0 behavior by using new config option
If you still have issues with the new version, please provide all possible information which helps catch this bug (miner log, configuration, information about system) and just in case please check CPU temperatures.