Try disconnecting the vacuum line to the transmission and then go for a drive.
If your transmission shifts firmly through all the gears and shows no signs of slipping/flaring then you have determined the problem is vacuum related.  Too much overall or too much at the wrong time. 
If your transmission shifts firmly through one gear or two but not all then the problem is internal and you're next step is likely to purchase a 
Superior Shift Kit for 722.3/722.4 Transmissions
I believe you have either a 722.315 or 722.416 you'll have to verify that you have a .3 or .4 unit. I'm not sure if the kit works on .1 transmissions. But since your working on a 82 model 300D/SD I'd think you're in .3 or .4 territory. 
The shift kit will replace other springs in the transmission that will help with slip/flaring and a host of other issues.  I had similar issues with my gold SD. It was not the B2, thats been replaced already.
			
				
			
		
 
		
		
		
			
		
		
		
		
		
			
				__________________
				Cruise Control not working? Send me PM or email (jamesdean59@gmail.com). I might be able to help out.
 Check here for compatibility, diagnostics, and availability! 
(4/11/2020:  Hi Everyone! I am still taking orders and replying to emails/PMs/etc, I appreciate your patience in these crazy times. Stay safe and healthy!)
82 300SD    145k
89 420SEL   210k
89 560SEL   118k
90 300SE     262k 
RIP 5/25/2010
90 560SEL   154k  
91 300D 2.5 Turbo.  241k 
93 190E 3.0 235k 
93 300E 195k