May seem weird and I don't know why it's working, BUT, try a factory reset from system settings (No twrp, no fastboot) just go to settings -->my device --> backup and restore --> factory reset.
This fixed all the issues I was having (e.g telegram and Gmail can't access memory) and also, I...