A. Ensure your internet connection is stable and try generating the PDF during off-peak hours when server load might be lower.
B. If possible, use a desktop version of the app or website to generate the PDF, as it might be faster than the mobile version.