Recover data from a bricked phone (not yet reset)

I get this screen from an old android device:

enter image description here

It has not yet went through a full factory reset so the data is still there. The data (photos) is in internal storage (no sdcard).

Any ideas how to recover data from this?