Hey all, just wanted to add to this as well as I just started getting this error.
Working great until I changed my phone number.
Worked fine with new number for about 24 hours then got 'banned' and couldn't log in.
When I got 'unbanned' and tried to log back in went to the "You need the official WhatsApp to login" screen when it got to sending the 2FA code to new number.
Used secondary Pixel 6 phone with stock OS, no problem with logging in with new number.
Factory reset Graphene, same error -- no change.
Tried my old number (I'm running 2 sims) it WORKED.
So for my experience it is bricking or erroring out ONLY when using the new number I changed too, I can log in with old number on same Graphene OS / WhatsApp installed....
Hope this helps...
Quick update. In Whats App running fine with the old number I tried add account with the new number. Same issue get the 'Unofficial App' BS.
Curious if the workaround would be to 'Add Account' instead of going through the changing number via WhatsApp.