Ok, here's the thing:
Optifine worked with my pc very well but for 2 months now I've encountered a constant 5 second lag spike even in menus it causes random freezes or even crashes at time (well the game just closes off). If you freeze while floating you get kicked for flying and it happens outside the server as well and with all other versions of Optifine the same problem occurred
on Singleplayer as well. It stops when the jar file is disabled which diminishes my framerate to horrendous speeds.
Long story short, it give a lag spike in a interval of every 5 seconds or so. So I am seeking assistance and possible tips I can use to resolve this problem and also discover the source of it if possible.