You really need to see a practitioner, particularly with such a complex autoimmune condition as Ankylosing spondylitis. Long story short, you need to treat the root of these conditions, messing around with Chinese herbal formulas, choosing them for their symptoms and not for deeper diagnostic reasons will more than likely not help you and worse could greatly irritate your autoimmune condition. You need to get a proper diagnosis first, and then choose formulas from that - see how to choose a formula for basics on this.
With regards to some of the formulas you were taking - yin qiao is only good for acute onset of a particular type of cold/flu in Chinese Medicine terms - long term use in 95% of cases will be a very bad idea, yu ping feng wan is generally only taken when you -not- sick as it’s strengthening properties can drive things in deeper. Du huo ji sheng wan is only useful if you have very strong dampness signs - if you have too much deficiency or another pattern you will make yourself worse with this formula.