Will having different macOS affect Mail?

Alas, no. See:

Also…

There may be issues with Gmail as the server, but at least some of the problems (as noted above in @mjtsai’s post) involve mail hosted on iCloud.