Default com.android.process.media stops working

I flashed stock 4.4 and sideloaded ota for 4.4.1. Since al the data was wiped including my pictures taken from nexus 4 camera, i tried copying the pictures to the DCIM/Camera from my backup. While copying the first few files the copying stops and i get a force close from com.process.media . This happened even in earlier versions such as 4.3 also