I fixed this problem on my truck about 40+ years ago. I simply installed a pressure switch in the brake line, easy peasy, never worried about it since. Pretty sure it was a 57 Buick stoplight switch.
Gotta think outside the box once in a while................