i solved this
with mail 16.0 same error
i removed everything (plugins, sideloadly, ecc)
i installed altstore then i pressed the icon and selected install mail plug-in, follow the instructions and the everything should be fine enable the plug-in mail (cmd + , > general > plugin > (select the icon) AltPlugin.mailbundle) install sideloadly and open it, go in advances options and see if you see under the anisette authentication (it should be in the middle) if says it's selected local, if not try to re-follow the steps i described before if is selected you are fine.
then you can also remove the Altstore.app
fix the -36607 sideloadly anisette mail problem incompatibily
using m1 macbook air (ventura 13.5) and iphone (mini 12 ios 16.6) , tried also with and ipad pro 11' (3th gen M1 ios 16.6) so everything is updated to the recents updates (as today)