Any hard wired devices? If so, do they also lose connection?
Do you also have tv service? If so, do you have issues with picture freezes, pixelation, drops, etc.?
If your hard-wired devices stay connected, the problem is almost certain to be with the router or WiFi radios, NOT THE MODEM. Don't try to fix the part of your LAN that i sstill working properly!