Temperature issues tend to point to hardware and software ones.
To try & find sources of those, usually require looking further into
the macOS for clues; to tell where the symptoms arise from.
This article about Activity Monitor is essentially a user guide with
table of contents; to use incremental smaller guides in context.
• Activity Monitor User Guide - (Table of Contents) - Apple Support
https://support.apple.com/guide/activity-monitor/toc
As a reference, save into browser bookmarks; perhaps into offline archive.
Other articles and ideas for troubleshooting heat-related issues exist.
There may be some conflicts across different software that could keep
them battling each other; hard to say. Sometimes to run Safe mode can
help. The M1 instructions on most every Apple subject differ from Intel.
• Start up your Mac in Safe mode - Apple Support (both Silicon + Intel)
https://support.apple.com/guide/mac-help/start-up-your-mac-in-safe-mode-mh21245/11.0/mac/11.0
There are a few diagnostic software items, some Apple; another one is EtreCheck
a utility that can be quite useful, a free version web download; or from App store.