I have a pretty good computer, my specs are as follows:

GTX 1650TI SUPER

Intel i5 10400F 2.90GHz

16 GBs of DDr4 RAM

240GB SSD

I get roughly 300 FPS in Fortnite, 200 FPS in GTA, so on so fourth. But for some reason when it comes to Minecraft Java it can’t handle it…? If I look at the sky and stay still I get 1000FPS. If I look at the ground 500FPS. If I start walking I get 300 FPS. But then there are these points when the game loads in its chunks and my PC flips out and goes to around 10FPS for about 1-2 seconds.

Here’s what I’ve tried to solve this:

Reinstalling windows

Updating drivers

Allocating 4GB of RAM to Minecraft

Optimizing Minecraft’s settings

but nothing works? Is this some problem with my computer or the game? Because I have no idea what to do