The M4 Macs were released along with macOS 15.x Sequoia. Only older model Macs which were available prior to the release of Sequoia can be downgraded to Sonoma (even if they were still being sold new & shipped with Sequoia). However, any Macs that existed prior to the release of macOS 15.x Sequoia were just M1, M2, and M3 models. The M4 was introduced along with Sequoia.
Here is an Apple article which clearly states which Macs are compatible with Sonoma. No 2024 MacBook Pros are listed....in fact the last MBPro model compatible with Sonoma is from 2023. And there is no mention of an M4 in that list.
macOS Sonoma is compatible with these computers - Apple Support
If your Mac is in that list, then you can create a bootable macOS 14.x Sonoma USB installer in order to perform a clean install of Sonoma.
The software issues you describe are likely cause by one or more third party apps you have installed. You need to make sure all third party apps are compatible with Sequoia (including the latest minor patch version) and those apps are at their most recent versions. Also, anti-virus software, cleaning/optimizer apps, and third party security software & VPNs are the usual culprits when a computer is having issues. Uninstall these types of apps by following the developers' instructions and hope that it removes all traces of those apps (sometimes remnants of those apps can remain behind to cause problems).
You can also run the third party app EtreCheck and post the complete report here so we can examine it for possible clues.
How to use the Add Text Feature When Posting an EtreCheck Report - Apple Community
You may want to try disconnecting all external devices just in case one of them is causing a problem with your Mac.
You probably had issues with this system before upgrading the OS (or with the old computer if you migrated everything), but just did not realize it. An OS upgrade just makes existing problems worse or can reveal issues that went unnoticed before. I see it all the time. I suggest you should try to resolve the issues with Sequoia instead of trying to reinstall macOS (assuming the Mac can be downgraded).
FYI, before upgrading to a new major version of an OS, people should always make sure all of their third party software is fully supported & compatible with the new OS. Same goes for any external hardware that is used with the computer.