Could there be a problem with my flash when taking photos at night?

I think there is some kind of a problem with the flash of my phone when im taking photos at night. I have added some shots for comparison, check them out please and let me know what is this about and how can i fix it. In the first photo i took one using flash and the other without and it looks better... In Berlin the one with bad lighting was taken using my iphone x +flash and the better looking one with an iphone 8. the last photo was taken using flash showing you that that time it worked fine...
Re: Night Camera Problem

Check out the tips found via the the iMore Blog.
FWIW, the flash is meant for subjects that are close to the camera - they are not meant to light up a landscape. Don't use flash in those situations.

Is there any chance that you have a case on your phone that is reflecting the light back up to the lens? Or is it possible that you have a finger (or your hand) too close to the lens assembly so that the light from the flash is reflecting off your finger and into the lens?

Original thread: https://forums.imore.com/threads/could-there-be-a-problem-with-my-flash-when-taking-photos-at-night.430001/