I'm betting that your tank vent is blocked
Pressurizing the tank. It's allowing just enough air to escape to relieve the pressure overnight and/or while you're away from the boat...using the head repressurizes it again, preventing waste from going into it. Or...if you leave the tank overboard discharge thru-hull open all the time, sea water may be filling up your tank...no room for more waste in it, so your flushes are backing up. Some of it may be seeping out through the macerator, creating more room. If the joker valve hasn't been replaced in at least two years, it should be replaced whether your head is backing up or not. But even a new one won't allow waste to go into a tank that doesn't have any space left in it. If you don't know what a joker valve is, or where it is, refer to the exploded drawing for your toilet. You can get that off the mfr's website.