I see, is there any method of entry where the risk would be smaller than others? Or could I just enter as a visitor without showing that I'm a PR or something like that? Hm I didn't realise how troublesome this would be, I feel like I may have to risk it as I'd hate to miss a wedding like this.
You should assume that they will identify you as a PR using these things they have ('computers') and that not saying you're a PR - otherwise known as lying - might be bad. Your best bet is usually just to tell the truth.
As above, there's no zero risk way to depart and re-enter. You are basically relying upon some form of
lenience (formally may have different names) or that the border officers don't think it's worth their time to write it up.
There are lots of factors in that - in your case the most important how much you've been out of Canada overall, and also how 'settled' you seem to be in Canada (truly resident and working etc, family here, and on and on).
Your card expired in May - so by simple guess you originally landed in early 2016 and have spent time here only recently - meaning you seemingly 'returned' to Canada in early 2021 and you were already out of compliance then - by a lot. So it sounds like you were given lenience then (did border officers say anything then? what was the entry like?) - and possible that a note was put on your file and/or a warning of some kind communicated to you.
Or in other words - maybe they believe they already gave you your chance.
But really no-one can tell you how good the chances are, it's up to you. Anything else is really speculation.