What's the difference between flaws of character and a personality disorder?
There is a clear definition of what a personality disorder is. The Wikipedia article on Personality Disorders lists the criteria given in the DSM-5 and ICD-10. Take a look: https://en.wikipedia.org/wiki/Personality_disorder

If you don't understand those definitions, please edit your question accordingly.