Yes, pull the pellets and treats, and feed only hay for several days.
Also, you can try Kaolin pectin (anti-diarrhea formula available at pet stores).
Unfortunately, there are feeds at PetSmart that are not good for chinchillas. What brand did you select? What is the mill date?
You were...