I am not surprised in the slightest that reverting to an OEM air box has solved your issue.
Always best to stick with the OEM air intake boxes for DE and HR models.
By all means, swop out the filters for Cosworth, HKS, K&N or similar, but always retain the OEM filter box.
Nissan did not spend many hours and mega money on developing their OEM air intake boxes for nothing.