Outspoken SNP backbencher Fergus Ewing has said he will not run for the party in the 2026 election and may run as an independent instead.