Printing a web map with a content that is not shared with everyone fails since Portal for ArcGIS 10.8.1 Security 2023 Update 1 Patch, and returns an error message, "Error code 400: Unable to complete operation."
This issue is non-reproducible. If experiencing this behavior, reach out to Esri Support Services as a new reproduction case is needed to continue investigation.