Start by evicting the third-party software with the word "clean" in its name. The macOS—catlike—cleans itself and as for over 20 years. Other so-called "cleaning" apps only interfere with elegant automated maintenance routines you paid Apple to build into your operating system. Let your Mac be a Mac.
This could be at play:
Diagnostics Information (past 7-30 days):
2022-06-22 18:26:29 photoanalysisd - High CPU Use (20 times)
This article explains the issue and provides a workaround:
https://apple.stackexchange.com/questions/310594/what-is-photoanalysisd-and-why-is-it-using-77-of-my-cpu