The problem was on the "Micro-max Android one mobile", which was 6.0 Marshmallow. This device does not have sufficient internal or external memory space. Doesn't even have an SD card.
I went through many sites and found that the problem is related to updates to Google Play services that require Space (updated Google photos), which were not enough on my device, and also one of the Error lines showed
"Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.mkdir()' on a null object reference"
I decided to check after installing the SD card. And it worked
Joyal source share