My computer starts lagging a lot at random times and at first it went away after a while, but it has gotten worse and i just restart my pc now but it only works for a few hours until it does it again. And i know it can't entirely be my internet's fault because my cursor lags too not just websites or videos. The pc is quite new and i have no idea what to do about it. And its really bad lag it looks like a slideshow and its starting to be very annoying. I'd also like to know how to stop getting that Microsoft defender family thing everytime i open my computer i don't really know what it is but i want it to go away. I haven't really tried any things because so many different sources are saying so many different reasons so i don't know what to do.
PC Specs:
AMD Ryzen 5 5500
AMD Radeon RX 6600
16,0 Gt
Keep in mind i am not very good at this computer stuff so go easy on me if i made any mistakes.