I am very new to latex so I am working in overleaf and I dont know what causes my problem.
I am writing my master's thesis and after compiling I get these big thick lines on the right sides of some equations. What could be the reason?

I am very new to latex so I am working in overleaf and I dont know what causes my problem.
I am writing my master's thesis and after compiling I get these big thick lines on the right sides of some equations. What could be the reason?

The reason for the vertical bars at the right is:
If the width of lines of text exceeds \hsize by a width larger than the value of the \dimen-parameter \hfuzz , then TeX will inform you about this via an Overfull \hbox (...-message on the console and in the .log-file.
Additionally:
If the \dimen-parameter \overfullrule is positive, then TeX draws black vertical bars of width \overfullrule to the right of lines of text whose width exceeds \hsize by a width larger than the value of the \dimen-parameter \hfuzz.
\newdimen\mydimen
\mydimen=\hsize
\advance\mydimen by \hfuzz
\advance\mydimen by 1sp
\noindent This line is not too wide\hfill This line is not too wide\hfill This line is not too wide
\bigskip
\noindent This time you see the vertical bar because this time {\tt\string\overfullrule} is positive (\the\overfullrule):
\bigskip
\noindent
\leavevmode\vbox to 4\baselineskip{%
\xleaders\hbox to\mydimen{%
\strut These lines are too wide by {\tt\string\hfuzz}+1sp=\the\hfuzz+1sp\hfill
These lines are too wide by {\tt\string\hfuzz}+1sp=\the\hfuzz+1sp%
}\vfill
}
\bigskip
\overfullrule=0pt
\noindent This time you don't see the vertical bar because this time {\tt\string\overfullrule} is not positive.
\bigskip
\noindent
\leavevmode\vbox to 4\baselineskip{%
\xleaders\hbox to\mydimen{%
\strut These lines are too wide by {\tt\string\hfuzz}+1sp=\the\hfuzz+1sp\hfill
These lines are too wide by {\tt\string\hfuzz}+1sp=\the\hfuzz+1sp%
}\vfill
}
\bye
Solution:
Ensure that lines are not too long by providing breakpoints where line-breaks can occur.
You might be interested in the answers to the question
How can I split an equation over two (or more) lines.
Also see:
Michael Downes, American Mathematical Society: Breaking equations, TUGboat, Volume 18 (1997), No. 3. URL: https://www.tug.org/TUGboat/tb18-3/tb56down.pdf
Donald E. Knuth, The TeXbook, Chapter 19: Displayed Equations, paragraph 3. Long formulas. (Page 195 in the nineteenth printing, February 2012.)
\overfullruleis positive, then TeX will draw black vertical bars of width\overfullruleat the right of lines of text that somewhere stick out into the margins. – Ulrich Diez May 21 '20 at 13:16[draft]set but setting the width to 0 doesn't solve the problem only stops the warning, the lines are too long to fit on the page you can turn off the warning bars (which is the default anyway) but the lies are still too long. – David Carlisle May 21 '20 at 13:59