The freezing could be a heating issue. My 2015 MBP was doing the same, and the fans seemed to always be in high gear. I took the back plate off, cleaned the fans, and it performs like new again.
I've seen it on my Mac mini a couple of times. I thought it might have been a bluetooth issue as both the keyboard and mouse were unresponsive but perhaps there is something else going on.