Thank you Scott Munro for your insight. I added the following to my script and now it works:
- name: Install stable version of AWS CDK run: npm install -g [email protected] # Use a stable previous version