In state mode, how to avoid the problem of class inflation?

when reading the design pattern of the Zen state pattern of the design pattern, why do you mention that the disadvantage of the state pattern is that there are too many subclasses, which will cause class expansion? is there any way to solve this problem?
the author also mentioned setting up a state table in the database. What is the specific idea?

Apr.02,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea502a-1d20.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea502a-1d20.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?