UPDATE
Dynamic optimization didn't help at all it only made it worse, it made it so that lag comes even faster than before and also i noticed that my cpu and gpu usage is always same even when it's not lagging and when is lagging but my ssd usage is just jumping up and down while I'm playing forza