You better check with your CPA.
Or tax professional (not all CPA's know tax). It's a waste to argue the nuances here because we don't know the whole picture.
In an S Corp, if the current year corporate distributions exceed the corporate profits and also exceed the existing Retained Earnings then Capital gains could come into play. But that usually happens related to the sale of assets. There are lot of moving parts and a multiplicity of things that could influence the numbers. Leave it to the OP's tax person to figure it out!