Welcome Ken. Sorry to hear of your troubles.
Did they tell you what the exact Check Engine Code number was?
It sounds like the first thing Mahindra recommends on all of these tractors with an "issue" is to reflash the ECU to update the software.
I would ask them to plug it in to the Garuda software and see what the actual check engine codes coming up are.
Here is a link to a manual you can use for reference:
http://kisandost.com/KisanMitraWeb/MarketBulletinView?moduleType=SubjectPartFile&FileName=203
Make note, an OBD2 reader does not give you accurate read out of the codes or the proper code. The factory Garuda software must be used.
They should be able to use the modern electronics to their advantage and pin point the problem.
I would ask for thorough explanation when they're doing their work. I can't stand when they say it had a code and we fixed it. Oh, really? What was the code, how did you trouble shoot the proposed problem, how did you "fix" it and why is the MIL still on again if you "fixed" it? Haha, i literally get frustrated every time i read these threads because it's almost the same story from everyone. The dealer/techs/mahindra or whomever suggested a reflash, and we think that was it. Motors are basic, they need air, fuel, and ignition. There are a few systems that control that. And now there are a few systems that regulate and monitor it.
I browsed the manual i sent the link for, and i can't find something as specific as what youre mentioning for symptoms.
My questions would be, will the tractor idle for 15 minutes straight? or does it always just stall after 4 minutes. or is it indeed 2 minutes after in gear, no matter how long idling, it stalls.
Really, just need to know what MIL codes it's throwing at that time then too.
Good luck and keep us posted.