Depends on when it happened. If it happened on his deathbed, assume a will-destroying scenario as in OTL. If before that…tricky. It’s a lot harder for Cersei to row this sort of thing back once it becomes publicly known, but then again Margaret d’Anjou overcame an explicit Parliamentary decree disinheriting her son…