I was having the same problems with my 300TE 4matic. I found this write-up extremely helpful.
Artisan : What to do when my M103 is giving me trouble: A beginners guide
My problem ended up being the EHA. I swapped out a donor from a parts engine and haven't had a problem since.