From my understanding AWS Lambda runs "Amazon Linux 2023" and does not allow installation of the system level libraries needed to run headless pyppeteer (yum install -y libX11 libX11-devel libXcomposite libXcursor libXdamage libXrandr libXi libXtst libXScrnSaver
). I was able to get my script running on an E2C instance instead and would recommend others who face this problem to do the same.