If using operating system 10.13.06 (High Sierra) or earlier, that is the problem. Some computers like my 2015 MacBook Air were compatible with a newer MacOS but hadn't updated for lack of enough free storage. Cleaning out junk files gave me enough storage to download 10.15.7 (Catalina) and the problem was solved with the newer built-in Mail app.
See if your computer is compatible with an updated MacOS.
https://www.macworld.com/article/673697/what-version-of-macos-can-my-mac-run.html
If so, update and the problem is likely solved. If not, you might have to convince Apple to upgrade/fix the Mail app in 10.13.06 (High Sierra), unless someone else has a solution.
If compatible, simply upgrade the operating system and the problem is resolved with the newer built-in Mail app.
In my case I had to first clean out enough junk files to leave me with enough storage to download the new operating system.
With 10.13.6 (High Sierra) or older I don't have a solution.
Succeeded by upgrading my 2015 MacBook Air operating system from 10.13.06, to 10.15.7 (Catalina). Once I discovered that it was compatible, I had to clean up useless filed to gain enough storage for the new