Minecraft frezees whole computer after some time

When i play Modded Minecraft (All the Mods 8) my whole computer freezes. I then have to power of the PC using the power button.

I use the PolyMC luancher. And my memory usage is usually at 40-50%

Kernel: 6.2.7-arch1-1 arch: x86_64 bits: 64
Desktop: KDE Plasma v: 5.27.3 Distro: EndeavourOS
Machine:
Type: Desktop System: LENOVO product: 90RW0003MW v: IdeaCentre Gaming5
14ACN6 serial:
Mobo: LENOVO model: 3743 v: SDK0J40700 WIN 3258215464713
serial: UEFI: LENOVO v: O5EKT19A date: 06/06/2021
CPU:
Info: 6-core model: AMD Ryzen 5 5600G with Radeon Graphics bits: 64
type: MT MCP cache: L2: 3 MiB
Speed (MHz): avg: 1733 min/max: 1400/4464 cores: 1: 2396 2: 1400 3: 1400
4: 2995 5: 1400 6: 1400 7: 1400 8: 1400 9: 1700 10: 1400 11: 2514 12: 1400
Graphics:
Device-1: NVIDIA TU116 [GeForce GTX 1660 SUPER] driver: nvidia v: 525.89.02
Display: x11 server: X.Org v: 21.1.7 driver: X: loaded: nvidia
unloaded: modesetting gpu: nvidia,nvidia-nvswitch resolution: 1920x1080
API: OpenGL v: 4.6.0 NVIDIA 525.89.02 renderer: NVIDIA GeForce GTX 1660
SUPER/PCIe/SSE2
Audio:
Device-1: NVIDIA TU116 High Definition Audio driver: snd_hda_intel
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
Sound API: ALSA v: k6.2.7-arch1-1 running: yes
Sound Server-1: PipeWire v: 0.3.67 running: yes
Network:
Device-1: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter
driver: rtw89_8852ae
IF: wlan0 state: down mac: 8a:cf:56:88:fa:75
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8169
IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: 1c:69:7a:c6:a5:ca
Bluetooth:
Device-1: Realtek Bluetooth Radio type: USB driver: btusb
Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: disabled
rfk-block: hardware: no software: no address: see --recommends
Drives:
Local Storage: total: 476.94 GiB used: 218.45 GiB (45.8%)
ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN730
SDBQNTY-512G-1001 size: 476.94 GiB
Partition:
ID-1: / size: 467.42 GiB used: 218.2 GiB (46.7%) fs: ext4
dev: /dev/nvme0n1p2
Swap:
ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) file: /swapfile
Sensors:
System Temperatures: cpu: 42.8 C mobo: N/A gpu: nvidia temp: 40 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 22%
Info:
Processes: 274 Uptime: 2h 24m Memory: 14.98 GiB used: 3.97 GiB (26.5%)
Shell: Bash inxi: 3.3.25

  1. Turn off all the mods
  2. Check how MC behaves (probably it will behave nice, if not, try other launcher)
  3. Turn one mod - check behavior
  4. Continue turning on other mods and checking, till you will find one, which creates a problem

Once you found mod which causes problem, report to mod createor

Well i started with the FTB launcher but switched to PolyMC to fix the freezing. And testing evry mod would take around 275 hours.