Most likely, you lack RAM in multitasking processes. For example, my Aser Nitro laptop has 8 GB of RAM installed as standard. This was not enough for some tasks, so the laptop sometimes slowed down. So I bought a second bar of 8 GB of RAM. But you have to be careful about this so that the frequency and timing of the RAM match. Because, for example, the timing scheme of CL 16 and CL 18 is not the same. Ideally, the RAM should be from another manufacturer.