How do I remove the “video” flag from a transcoded .m4a file?
You should be able to use subler to do that. Just open the file, go to other settings and you can set the media kind to "normal".

https://subler.org/