When self-forces are involved, a typical factor of 12 comes into play. For example, the force on a current carrying straight wire in a magnetic induction B is BIl. If the magnetic induction B is due to the current itself then the force can be written as,
F=∫I0B(I′)dI′l
If B(I′)∝I′, then this becomes, F=12B(I)Il.
In the present case, B(I)=μ0nI and this acts on nI ampere turns per unit length, so, pressure p=FArea=12μ0nI×nI×1×l1×l=12μ0n2I2