What's the status of your S4 regarding bone stock, Root, ROM etc.?
What additional if any apps have you installed from the playstore, etc?
What extsdcard card is installed?
As mentioned previously, sd cards can be corrupt, defective, etc. If you feel this may be the issue as you described, insert another card to rule the card in or our as the cause.
Where LAW ABIDING CITIZENS & Their FAMILIES are UNARMED & DEFENSELESS Against ARMED & DANGEROUS CRIMINALS; NYS: 77,490 VIOLENT CRIMES in 2011!