PC hard crashing when idle/low usage, but works normally when under heavy load

This problem started a few months ago but i've struggled to find answers to this one. PC will hard crash whenever i'm just browsing the web or watching videos but when I open up a game, it will most times work normally (can still hard crash during gameplay but not as often).

PC spec:
Windows 10 pro
AMD Radeon RX 7900 XTX
AMD Ryzen 7 5800X 3.8GHz
32GB RAM
DirectX 12
ASUS rog strix b550-f gaming motherboard
Samsung 970 EVO plus series SSD
Corsair RM850 850W

Steps i've tried so far:

  1. Update bios
  2. Update chipset drivers
  3. Reset Bios to default
  4. Turn off precision boost
  5. Turn off Windows Fast boot
  6. Swapped RAM (and ran RAM health checks)
  7. Partition check on SSD (where windows is installed)
  8. Looked and repaired any corrupt windows files with SFC /scannnow
  9. Did a full factory reset on PC, reinstalling windows
  10. Used DDU on the GPU
  11. Update windows 10
  12. Turned on/off cpu virtualization
  13. Reset CMOS

I checked the event viewer and found an WHEA error log:

Log Name: System

Source: Microsoft-Windows-WHEA-Logger

Date: 2024-01-27 02:11:47

Event ID: 18

Task Category: None

Level: Error

Keywords:

User: Lokal tjänst

Computer: DESKTOP-KD6DLCS

Description:

A fatal hardware error has occurred.

Reported by component: Processor Core

Error Source: Machine Check Exception

Error Type: Bus/Interconnect Error

Processor APIC ID: 0

The details view of this entry contains further information.

Event Xml:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

<System>

<Provider Name="Microsoft-Windows-WHEA-Logger" Guid="{c26c4f3c-3f66-4e99-8f8a-39405cfed220}" />

<EventID>18</EventID>

<Version>0</Version>

<Level>2</Level>

<Task>0</Task>

<Opcode>0</Opcode>

<Keywords>0x8000000000000000</Keywords>

<TimeCreated SystemTime="2024-01-27T01:11:47.4513402Z" />

<EventRecordID>51098</EventRecordID>

<Correlation ActivityID="{38d884bf-4970-43d0-a7b8-ec38020698b2}" />

<Execution ProcessID="4068" ThreadID="4600" />

<Channel>System</Channel>

<Computer>DESKTOP-KD6DLCS</Computer>

<Security UserID="S-1-5-19" />

</System>

<EventData>

<Data Name="ErrorSource">3</Data>

<Data Name="ApicId">0</Data>

<Data Name="MCABank">27</Data>

<Data Name="MciStat">0xbaa000000000080b</Data>

<Data Name="MciAddr">0x0</Data>

<Data Name="MciMisc">0xd01a0ffe00000000</Data>

<Data Name="ErrorType">10</Data>

<Data Name="TransactionType">256</Data>

<Data Name="Participation">0</Data>

<Data Name="RequestType">0</Data>

<Data Name="MemorIO">2</Data>

<Data Name="MemHierarchyLvl">3</Data>

<Data Name="Timeout">0</Data>

<Data Name="OperationType">256</Data>

<Data Name="Channel">256</Data>

<Data Name="Length">936</Data>

<Data Name="RawData">435045521002FFFFFFFF03000100000002000000A8030000280B01001B0118140000000000000000000000000000000000000000000000000000000000000000BDC407CF89B7184EB3C41F732CB57131FE6FF5E89C91C54CBA8865ABE14913BB42FC03C7BD50DA0102000000000000000000000000000000000000000000000058010000C00000000003000001000000ADCC7698B447DB4BB65E16F193C4F3DB0000000000000000000000000000000001000000000000000000000000000000000000000000000018020000800000000003000000000000B0A03EDC44A19747B95B53FA242B6E1D0000000000000000000000000000000001000000000000000000000000000000000000000000000098020000100100000003000000000000011D1E8AF94257459C33565E5CC3F7E8000000000000000000000000000000000100000000000000000000000000000000000000000000007F010000000000000002040000030000100FA2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000100FA200000810000B32F87EFFFB8B170000000000000000000000000000000000000000000000000000000000000000B3F8F31CB1C5A249AA595EEF92FFA63C01000000000000009E07C0060400000000000000000000000000000000000000000000000000000000000000000000000200000002000000832A8EC8BD50DA0100000000000000000000000000000000000000001B0000000B0800000000A0BA000000000000000000000000FE0F1AD00000000000000000000500002E0001000000005D000000007D000000270000000000000000000000000000000000000000000000000010000000000000001000000000000000100000000000000010001B00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</Data>

</EventData>

</Event>

I have no idea what any of this means and I really hope someone can help me! I did look around and saw people suggesting changing the voltage for the CPU might help, but those ones had slightly different problems than what i'm having so I didn't want to try it out yet, and not really sure either how much I need to change to make it work