Sounds like two issues to me. Sticking wheel cylinder pistons causing heat build up, AND tiny hole in master clogged and failing to release heat induced pressure. Then into a failure spiral. Good it didn’t cause a crash. Stiff caliper slide pins could be contributing as was said too. Entirely possible it’s not coincidence but all related to a long term neglected brake system culminating in a “perfect storm”.