My server will be fine for about 24hrs,and then seemingly go offline for no reason

Is this “anywhere” always outside of the home network where your server is residing?
If yes, then it’s due to your router deleting the port forwarding, which gets created upon Plex server starting up.

Switch from UPnP to a manually created port forwarding. The Basics of Remote Access Troubleshooting