So worldwide production of vehicles is around 70million per year. VW group is making 10 million of these.
Assuming lower competition (because newer market), the worldwide market for EVs would have to be around 30-40 million vehicles per year to support a company the size of VW. EVs are currently at 1.1 million vehicles sold per year.
So the better alternative is to keep selling the cars you know how to make until it becomes unprofitable. Right now your EV market is so tiny that basically you could just research it and not even sell the cars and still be ready for when they actually constitute a big enough part of the market.