16585: Not valid a account
The rejection is from the Exchange and it could be because of KYC validation pending.
Please check this article and follow the steps carefully to complete the KYC validation: What is the process to verify KYC details (email and mobile number) registered with KRA? - Upstox Help Center
Once you raise a ticket, let us know the ID and we will get in touch with you soon.