A. 1. Adjust auto-lock settings: Go to Settings > Display & Brightness > Auto-Lock and set it to 'Never' while using Y-Disk to prevent the screen from turning off.
B. 2. Use a charging cable: Keep your iPhone plugged in while using Y-Disk to prevent the screen from dimming or locking.