While I am running Mac OS 15.2, I just tried to duplicate the issue and without the Connection Doctor window open Mail was using 160MB and when I opened Connection Doctor and left the window open for 10 minutes, Mail showed 157MB, so on my end that is not the issue.
I would suspect you have another process running on your computer that is causing a conflict. The best way to determine the process causing the problem is by posting the free EtreCheck report using the Additional Text option when posting. The report contains no personal information, but will not only identify the processes, it will also show the ones using RAM and CPU cycles causing the problem you see.
How to use the Add Text Feature When Post… - Apple Community