I am not an expert.

I think a 40 gal is not to big considering wild balls have much more room than that. But a ball needs to feel secure. Black out 3 sides of the tank, put in some fake plants. 2 hides are the minimum, but there is no maximum. Fill that tank with hiding spots. Keep the humidity up too.