Yes, such a risk exists. Bali is located in a seismically active zone, and there is a possibility of earthquakes, floods, and tsunamis.
The most recent and strongest tsunami in Bali occurred on Sunday, December 26, 2004. An underwater earthquake in the Indian Ocean triggered a tsunami that became the deadliest in modern history. The magnitude of the earthquake was estimated to be between 9.1 and 9.3, which is an extremely rare occurrence.
It is important to note that in the last 100 years, no buildings in Bali have collapsed. To prevent structural failure, many construction companies use tiled foundations and reinforce all load-bearing structures.