Foam insulation in interior walls
The space does not have to be filled but should not be between the two foam layers.
The required R value does have to be met.
To find your total R value: add the specified ratings for both foams.
Why are you putting the vapor barrier on the inside? Is this code compliant where you are?