I've had the same issue, for me, font size decrease solved the problem, I've added
schemaspy.fontsize=9
to the config (decreasing it from the deafault 11, see https://schemaspy.readthedocs.io/en/latest/configuration/commandline.html#diagram-related) and it works fine for now.