Don has given you good advice.
I had the same problem with my 41 years ago. It wouldn't stay in drive (3rd). I don't know for sure but one thing I found was that the shifter was excessively worn (I tossed some other parts in whist I had it apart.
One thing to consider, it probably get worse soon.
Why don't you suck it up and take the transmission out. Check it out real good. Replace whatever needs it. Repair the vacuum shifter and toss that aftermarket junk that needs a long throw to shift the gears. If you need something to repair your vacuum setup, give me a shout. I've got a several in different states of condition from NOS to well used and can probably help.
Best,
Charlie