i run a 600w in a 4x3x5 and its fine

your space might be more suited for a 400w but if you're on top of your temps than i dont see why not.
if you're unsure of what your temps are gonna be like i'd opt for the 400w. just my opinion based on my experience