Well, that’s descriptive/helpful/informative/useful. Not. Likely the result of multiple If/Thens but without the the significant but often ignored “what-if”… also called an Else.
Maybe you could give the user some hints to help resolve this descriptive “Something went wrong” error that occurs continuously.