the most elegant solution is that we live in a closed but expanding universe similar to the surface of an expanding balloon
one less elegant solution is to have everything exist in an ever increasing quantum field where the quantum field is expanding so far you can never reach the edge of it.