Looks like intestinal lining to me, worms nromally either come out as white "intact" living, or dead meaning dried up in a ball.
You can put some ductape on your anus over night and see what you "caught" the next day.
However for your Lyme and Hypothyroid you should take Selenium. (Google it)
Doctor can give you meds if you got worms, but if you stomach acid and bile flow is not right you will only be treating temporary symptoms and they will come back.