Hello and welcome to Microsoft Community
According to your description, your computer will appear a black screen with error messages, this seems to be a coincidence, in fact, there is no necessary connection between them, you can try to update all the motherboard drivers, if the problem still occurs, we recommend that you can test your computer's motherboard for problems.
We hope the above information is helpful to you, if you have any questions, you can always give us feedback.
Kirito|Microsoft Community Support Specialist