We did more analysis from our side and mentioned the same below.
We are using microsoft graph version 1.7.1 jar to download file from onedrive. The jar using by default version 3.12.1 of com.squareup.okhttp3 .
But this version(3.12.1) has some vulnerability , hence we overridden default version of com.squareup.okhttp3 to "4.8.0" 6-8 months back . With this new version of com.squareup.okhttp3 , microsoft graph services was working fine , but from some time back , suddenly it start throwing this error/exception.
Then I tried to revert back version of com.squareup.okhttp3 means from "4.8.0" to default("3.12.1") , "download file from onedrive" service start working again.
It seems that "4.8.0" version of com.squareup.okhttp3 is not compactible with microsoft graph version 1.7.1 for some of rest service like "download file from onedrive", "export pdf from onedrive" etc.
Please look into this issue asap. It has blocked some of our urgent deliverables.
Thanks for understanding.