We forum followers overthink the history of royal names IMO.
William - William of Glos died in a plane crash; another William was assasinated -but its not a problem
Henry - A young Prince Henry drowned; Henry VII usurped the throne; Henry VII was a tyrant (but good re the navy) - probably didnt cross their minds
George - Prince George of Kent was killed in a plane crash
David - Family name for the Prince of Wales/Edward VIII - didnt put off Princess Margaret and Lord Snowdon
Charles - well - Charles I lost his head
Anne - 19 (some large number) pregnancies and no surviving child but not considered unlucky.i
The windsors are a pragmatic bunch - if they like it, then they will use it. Nothing to do with "bad luck" or previous history.