It was happening in Photo mode with Motion Photos turned on. Until Samsung's next update turning off Motion Photo temporarily works for me. Or use Pro or Live Focus modes.
Ive been having this issue for a few weeks now. I just tried turning off "Motion Photos" and have successfully taken about 20 pictures. Hopefully this solves the problem for now.