There are 2 common reasons behind this issue when you try to access Guest Invoice URL and getting Access Denied and Permission issue.
Reasons are given below:
- Make sure the file permission and file owner for this file "guestinvoice.php" with your FTP/SFTP or file manager
- Make sure "Allow Single Sign-On" option must be enabled with customer profile