right click your hard drive then properties then tools , run the error checker , it may take a long time but at the end of it you will also get the chance to let windows repair itself. One other thing I thought of , a 5 year old pc might not be good enough to run a gtx 1050 , if you still have the old card put it back in for a while and see if the problems still happen. By now your windows reliability monitor will be 0 so to give you a clean chart run ccleaner and tick the box marked windows event log and run ccleaner . untick the box before you close ccleaner so you can start recording any fresh errors, you might also find this link useful.
click here for 10 but the same method should work for you.