If your civil case involves only your personal debt, then even if you lose the case, the plaintiff cannot take your ownership away in the corporation but could get a lien or garnish your wages.
If you file for bankruptcy, you will probably have to give up your stocks to your creditors if the company has real value.