It is not safe by any stretch of the imagination. Throw away the pan!!!!
What is likely occuring is that the coating is peeling, but regardless of what the substance is, it is NOT designed to be incorporated into your food by any means!
Pain is inevitable. Suffering is Optional.