Speaking from personal experience, if you read up on it you'll find a lot of S4's having difficulty with some SanDisk higher capacity cards. When my SanDisk 64 gb card failed, I replaced it with a 64 gb UHS1 Samsung card. I have not had one issue with it, where the SanDisk failed daily.
Samsung Galaxy S4 Samsung Stock Rooted with Xposed and Wanam Mods
Galaxy S3 Hyperdrive latest, Ktoonsez KT747, Mild OC
Acer Iconia A200 OC to 1.5 Ghz
Samsung Infuse running Emancipation A:1, OC to 1.6ghz, minor undervolting