I doubt it's pirates. Your decline in sales is most likely due to students re-selling your used textbooks.
Change a word (or two) and release a new edition to put a damper on used textbook sales.
Students will love that. Probably so much that they would actually start to pirate your book...