How to determine why my Mac temporarily freezes?
If you want a better idea of the problem, you can check the console app installed in every mac by seeing the time the mac freezed and search that error code. You can also check if the problem is systematic by seeing the log files. First launch a window if finder and press cmd + shfit + g then type “/var/logs”