Hi Akshatta,
As per MS article - the error code refers to "InvalidRequest - Request is malformed or invalid. - The issue here is because there was something wrong with the request to a certain endpoint. The suggestion to this issue is to get a fiddler trace of the error occurring and looking to see if the request is actually properly formatted or not.
Can you provide a trace from the device and post it here for analysis?
Btw can you check the redirect URL if the it has complete path instead of the top level page info?
Also check this SO article with similar error and code -https://stackoverflow.com/questions/56870805/invalid-request-request-is-malformed-or-invalid-while-getting-access-token-fro
Hope this helps.
JS
==
Please Accept the answer if the information helped you. This will help us and others in the community as well.