This is why you should look for software that calls itself "FOSS" or "Free Software" instead. Avoid CLAs at all costs as well. If the software is licensed under a GPL-like license without a CLA and has had significant contributions from multiple people, this relicensing rugpull is nearly impossible.
It's still nice that I can audit the code and contribute (unpaid) changes, but I no longer assume anyone is acting in good faith.