If i’m not mistaken in Twilio’s documentation, it does state that if the conversation stops for longer than 24 hours, the channel will be closed. This could be what you are experiencing.
What i have done is that messages are sent through rather frequently to keep this alive.
Hope that helps.