The flying right elbow is a well-documented backswing fault that minimises shoulder turn and hinders the consistency of strike into the ball.
The arms need to stay relatively close together in the swing for it to be more compact, efficient and to get the body into a strong position in the backswing.
To achieve this feeling of connection, use a Pilates ring, which are available from all good sports shops, or a big elastic band, and place your arms inside it contacting the arms just above the elbows.
This will stop the elbows from separating too far in the swing and therefore improve your accuracy. It might feel strange at first, but you’ll be glad you tried it when you start hitting more fairways.