Hello,
If the smile started after starting these medication and it was not present before, then it can be medication induced tic. If you are smiling again and again due to continuous repetitive thoughts in your mind then it can be a compulsive act. A detailed assessment will help to know the real reason behind it.
Next Steps
Consult your psychiatrist. You can consult me for any help required.