What programs have you installed ?
Possible modem overheating ?
PC overheating ?
PSU possible failing ?
General overheating in the tower ?
Your problem could be one of any of the above or even something else.
First thing is try using a router connected by ethernet ( if possible)...then we will see if your modem is at fault.