Apparently, It didn’t help, I got the same error again.
Fortunately, I found another post similar to mine, where a viable solution was mentioned (Mailspring keeps disconnecting from gmail account - #3 by BlackChristianGeek).
If I keep having problems I’ll try that, and hope for the best
Another option I’m thinking of is complete reinstalation of the program, It’s going to be a bit of a hassle, but I think that will probably solve everything