With capacity shrunk by the pandemic and demand rebounding, the strain could persist for years and keep prices elevated.