That happens when your browser has several Google accounts signed in and Gmail defaults to the first one (u/0). Fixes: make the account you want the default by signing into it first, or use a separate Chrome profile per Google account so links open in the right one. You can also edit the link's /u/0/ to the right index, but separate browser profiles is the clean long-term fix.
This is the multiple-account default. Gmail opens links in whichever account is 'account 0', the first one you signed into. Sign out of all of them and sign back in with the account you want as the default first.
If you live in two accounts, a separate browser profile per account is the clean fix. Links then always land in the profile you clicked them from instead of guessing.