Instead of converting the files manually use DNA Kit Studio. It is pretty straigthforwardstraightforward. Use the Template for 23andme V5 file format. As well, take into account the weird flip-strand that performs this company.
https://snpedia.com/index.php/TellmeGen
Regards