Thanks for the advice.IMO prior to doing anything else with your Mac you should try it with the existing apps disabled and running a cocktail of different challenging applications. My point being that the first thing to do is verify that one of your existing applications is not causing the problem.
Doing hardware maintenance (cleaning/repasting) may not be necessary if the problem is software.
As I indicated, I have quite a few demanding applications, which will therefore have to be tested.
What appeals to me, however, is that I have the impression that the problem always appears during a phase of rest or wakefulness...