Generally speaking, traveling with a passport that has less than 6 months left isn't a good idea, for a number of reasons:
Some airlines have that requirement in their T&Cs.
If you transit other countries or want to make a side trip to another country, their rules might require 6 months.
Something unexpected could happen and lead to a delay. Pandemics, volcanoes, floods, accidents and what not.