I don't have a Framework, but I had this kind of problem with my Dell XP. Turns out there is a USB port that will drain the battery if anything is plugged in there - and this is even documented but not very visible in the docs. I had to move my device to a different port to alleviate this. Maybe something similar is going on here?