Adding onto this to share that matchmaking will cause this to happen if you were a different character in the hideout than what the matchmaker chose for you while editing a build.
If you were editing the build when the queue ends, it will erase whatever build was last shown for the character the matchmaker chose if you cancel/save it. I hope this gets fixed soon because I don't want to lose anymore builds.