When I was a kid in the 1970s, various Strange But True books from Scholastic - Strangely Enough! By CB Colby, Strange But True: 22 Amazing Stories (by Donald Sobel, the Encyclopedia Brown author) brought up this case of a guy swallowed by a whale.
I’m not surprised that today its considered myth.