Unreal Engine 5.1.1. freezes after opening a project for a few seconds.

Hello to everyone! I am using Unreal Engine 5.1.1. and trying to work on a group project of programmers and for some reason, every time I open the group project or any project, after a few seconds in the editor, the whole editor freezes and doesn’t do anything when I click on it. I restarted my computer and although it lasted longer, the editor still freezes after a few minutes. I upgraded my drivers and still it freezes and adjusted some settings on my computer when opening the editor but it still freezes. I even checked into my Unreal files to see if maybe a file is corrupted and nothing is corrupted. Lastly, I uninstalled and reinstalled the version again and still nothing is working. Does anyone know why this is happening and please tell me ASAP on solutions to fix it? Thank you!