Are there any solitary species of ant or termite?
I do not know of any solitary ants, but there are species that form very small colonies.

One such species is Jerdon's Jumping Ant (Harpegnathos saltator). They usually live in colonies smaller than 100 individuals and workers may reproduce, so the colony can survive after the queen's death.