LPS-45583 Catch permission when LAR file name is invalid

Hi Jon,

This fix was extened from LPS-43181, this will apply the same pattern as when we export layout.

Let me know if you need more details.

Thanks.