Is quitting and restarting aerc the only way to reconnect to IMAP after disconnect (either network related or the computer goes to sleep)?
As of now yes. But that's just because no one took the time to remedy that, not due to a design decision.
So in short, write a patch please ? :)