no it is not due to topiramate
it is due to depression- as your symptoms are much disturbing to you my advise is to increase the dose of tryptomer
other best option is you take sertraline- 50mg or escitalopram-10mg for depression.
also continue topiramate for migraine
if your symptoms are developed after any stressor then counseling is also required.
so consult any psychiatrist
even after you have good response to above treatment, for further treatment planning.
dr r yadav