You can quickly edit out the lens flare with free software.
If you want to reduce the lens flare while you’re taking the shot and try to avoid post-shoot editing.