Generally, it is tough to find an arbitrage opportunity in such scenarios. Assuming your view is bullish, considering the higher qty in July future,
One scenario which can lead to profits is…In June, if the stock falls, the june month futures may correct more than July purely considering to Time to expiry, Interest rate factor.
Any particular reason why you felt there is an arbitrage opportunity in this case?