There's probably a logical limit to how many displays macOS can support, but in practice you're just limited by the outputs of your graphics card(s). Lots of people run 6 monitors on two double-height graphics cards, or 9 monitors on three single-height graphics cards.
You can even split a single graphics card output to two or three monitors using a box like the Matrox TripleHead2Go.