Hello, thank you for reaching out to the Microsoft Community. I am here to help and provide assistance with any questions or concerns you may have.
I think for this you can use Event Viewer.
Open Event Viewer by typing "Event Viewer" in the Windows search bar. Navigate to "Windows Logs" and then "Application".
Look for any recent events that correspond to the time when the error occurred.
You can filter events by time to narrow down the search.