Does maintaining Linux filesystems make people mentally ill, or do only mentally ill people become filesystem maintainers?

Probably a bit of both.

You’d have to have a bit of a screw loose to dedicate so much of your free time to a project you won’t get much out yourself.

And the stress will only make things worse.