INTERNAL SERVER ERROR - extensions with payment

I need help with an error that occurs when generating a new extension. I know that I have a Partner account that allows me to do this, and I’m trying to add an extension to create a new payment method. However, I’m getting an ‘Internal Server Error’