Ideally that won't happen.
Looks like the slots for the hinge are longer than they need to be for freely hinging the assembly. Thus, one possible solution is to make that smaller.
Another solution is to have a nub sticking out from the edges that would touch the motor before the PCB of the octopus would.