You probably have the rod into the master cyl. improperly adjusted.
If the piston in the cyl doesn't retract all the way uncovering the ports to the resevoir ther is no place for fluid to flow back.
As your brakes generate heat the fluid expands with nowhere to go except puhing out the pistons in the calipers causing the brakes to drag generating mor heat etc. etc.