I see this bearing pitting sometimes and each time it is the VFD. The solution is insulated bearings. There are other solutions but changing the bearing will eliminate the issue.
It is caused by induced voltage transfered to the motor shaft.