Hi Yuliya,
I would say the use of flaw in this context is incorrect. Prepositions aren't part of your personality or character. Grammar of a language is something we acquire. Instead, you could use weakness /weak point.
Hope this helped. Feel free to message me anytime with any other doubts!