Sorry for the late reply. I found out the problem and it wasn't anything hardware related.
So apparently wmpnetwk.exe (windows media player sharing service) decided to start running even though I never used it. Somehow it was taking up 95% of my memory. Managed to remove the service and I'm back to normal now