Former SNP Minister Fergus Ewing fears he could be blocked from standing for the party at the next election.