Yes Ashwagandha can cause hair loss when taken long term.
When you take Ashwagandha long term the Ashwagandha can damage hair follicles and lead to hair loss.
So if you're taking Ashwagandha and are experiencing hair loss then you are likely taking the Ashwagandha too much or too often.
You should stop taking the Ashwagandha for awhile if you're experiencing hair loss but hair loss with Ashwagandha is normal if you're taking too much and taking the Ashwagandha long term.
You may also experience other side effects when taking Ashwagandha long term and those side effects can include things such as headache, sleepiness, and stomach upset.