You could try some 'self-stick' Velcro fabric to the side of the compartment, creating a tighter opening and that might keep the compartment closed. (owner of 2017 CRV)
open