It was not like this when I build my pc back in 2021 it only started acting like that recently
I had more performance before my CPU started acting weird and some games I play now keep crashing since it started acting weird
I try to reset settings in bios and AMD Ryzen Master settings it didn't change anything
There's not much to go on here. But uninstalling RyzenMaster is a logical first step: it seems obvious you don't want to benefit from the "overclocking" it's meant for and it's known to adversely affect performance under certain conditions. If you're looking for a good monitoring program the best one for Ryzen is HWInfo64.
Another option is to clean install Windows.
ADDED: fyi, my 5800X is frequently boosting from about 3400 (or less) to 4900 (or more) whenever something is active; that's just the way it works when it's properly set up. It can be changed that by changing Power Mode in Windows 11 from "Best Power Efficiency" to "Balanced" or "Best Performance"....or even by changing the particular Power Plan. That might make it not lower the clock so far but then it will boost less often and usually not as high. That's something for you to experiment with.
Check that your BIOS is up-to-date as there have been some fixes with later ones for Ryzen 5000 CPU's.
Reset CMOS to see how that changes things too.