Error 2564 while printing happens pretty regularly

I’ve been having this error code show up pretty regularly, since I swapped out the heating block. My solution I found that helps it error out less is to keep the top cover on and pre-heating the print bed and nozzle.

Is there a better solution to this?