The mistake is 'yourself'. Since 'you' is singular here (addressing one person, implied to be the person being asked), the correct reflexive pronoun is 'yourself'. If 'you' were plural, 'yourselves' would be correct.
Corrected sentence: Do you sometimes talk to yourself?