galaxy s4 keeps rebooting

How do you restart in safe mode ? already have cleared cache manually but keep getting an error message.:'(

Umm......that's a pretty big error. If it can't clear the cache you may be having system issues. Have you tried a factory reset?