With so much talk about connection problems, high ping, etc. First I would try to use a wired network and see if that make a difference. You can get even long network cables pretty cheap. So even if ran temporary for a few day's to test I think it would be worth it.
After something simple would be to try SMOS (
https://bitcointalk.org/index.php?topic=1541084.0 ). If it was a issue with windows this would eliminate it and you can test with running it off a USB stick.
I would try those 2 things and see what happens. Then start looking at hardware but hopefully one of two above fix issues.
Ye Ill definitely try that. Many ppl suggesting wifi, but the problem plugging it directly to ethernet cable due to my apartment layout is very...complicated. Weird thing is that the wifi is running 100% stable outside the mining and the weirdest thing is the randomness of this issue (it runs with 20-30 ms for hours and then just randomly it starts to lag like crazy). But IMO the high ping is not a cause but more like a symptom of something else.