To find what kind of errors you get when your machine freezes a log of the previous boot could help in locating the problematic component. To list the log of the previous boot cycle (the one before your machine froze) input this in the terminal:
journalctl -b-1 --priority=err
and your system info:
inxi --admin --verbosity=7 --filter --no-host --width
To share it with users on the forum paste the output between 3 backticks, the format makes it easy to read.
```
Your log here
```
```
Your systeminfo here
```
Tip: to safely shut down a frozen computer use REISUB
Something I have seen to work in the past with users on the forum: Open the layout switcher, switch to another layout and back to your desired layout again.