If your thumb is swelling then you’re probably gripping the ball with a clench rather than a squeeze. The benefit of a snug thumb is that the ball then holds onto you rather than you holding onto the ball. Then the ball releases at the bottom of your swing.
This might help: https://youtu.be/SKchSS7qcWE?si=gk7cMUZnmKBT8yyf