Like Valcazar says, the issue is that GOP candidates will have to go full-on racist, far right to get nominations and that should likely screw them when running against Dems in the election.
So the party needs to shut down the overtly racist, overtly anti-democratic Far Right to keep winning seats in all but very "safe" areas.
Difficult to just "shut down the overtly racist, overtly anti-democratic Far Right" though. Look at the Democrats. They made a conscious choice to work for civil rights and stop coddling the racists in the 60s with the Civil Rights act.
It cost them the Presidency for a generation. (Carter only got in because of fallout from Nixon.) The culture war is what has kept the GOP in power and it is wrapped up in racism. There's a whole "populist left" contingent that figures the fastest way to create a third party is to go herrenvolk - we can have medicare for all and better as long as we push the women and minorities to the back of the bus and make sure people know the enemy is the (((globalist bankers))).
I don't know how this gets resolved. As long as that strain of society is so huge, there is a massive temptation to hook your electoral wagon to it - especially in a badly-constructed Constitutional system that promotes counter majoritarianism and reinforces a 2-party system.

