Same problem on my Mi10T with 12.5.1 Stable ROM.
Thanks for sharing this fix, manually deleting "theme_magic" folder via TWRP Recovery solved issue.
Now i can upload my custom ringtones in to sdcard and they visible in file explorer.
For those who not familiar with TWRP Recovery but already...