The ESP32 on your PyPortal is running an older version of the firmware which runs on the ESP32 (named nina-fw). To use your PyPortal with AWS IoT, you'll need to update the ESP32's firmware the latest version of nina-fw.
Click the button below for the relevant steps on upgrading the ESP32 on your PyPortal and continue with the guide when you've successfully upgraded to nina-fw 1.4.0 or above.