to me, it appears, one of your your SMIME cert's validity has expired,
it could be the SMIME CA Cert, or it could be the SMIME client cert that was assigned for you.
Either you or family members, or one of your office admin has setup it for you,
so that Encrypted comm/emails in between you & office person's email, remains encrypted with SMIME.
Even if you setup SMIME, users who do not have matching SMIME, you can still comunciate with them via non-SMIME (non-encrypted email).
And, if you use email-client Thunderbird (TB, )then you can still use OpenPGP based encryption.
In apple Mail, when you setup GMail for 1st time, then it opened up a new web-window with a google GMail's specific URL webpage, at that moment GMail user needed to approve that OAuth2 based authentication (and press "Allow" button/key),
once user approves the apple Mail (or other email-client), from then on, OAuth2 based authentication will work fine in email-client, (specific app password is not necessary, but can be a plus).
Kindly use Thunderbird in Ventura.
Ventura's apple-Mail all bugs are not fixed yet.
Keep on monitoring/check if apple-Mail's bugs are fixed or not, but in the mean time use Thunderbird.
export SMIME CA cert & SMIME cleint cert from apple Mail, & import into Thunderbird, for the gmail account.
even w/o SMIME cert in TB, you can send emails to your office mates & to your wife, but BE AWARE, THOSE WILL NOT BE ENCRYPTED ANYMORE, with old SMIME cert anymore.
And if you reply to your old office/business person's email, who used the SMIME encryption protection,
then you have to be careful,
their old email's content if visible then SMIME decryption working, so you can reply with SMIME encryption.
But if old email's content is not visible then SIMIME is not working then do not include their email's old content back as a non-encrypted email, as thats not what they or you want, no one wants to create loss of privacy or loss of confidentiality.
gmail rolled out OAuth2 usage, some users were allowed to use older methods, for longer time, but at some point of time, they will not support older login anymore, i gues, that could be one reason, when your email was not working anymore.