I had this problem last night - I just made up a small batch of suuuper thick, sturdy buttercream that tasted similar to the filling, and piped a dam of that around the outside before I filled the layers to make sure the filling didn't seep out the sides. The buttercream needs to be really, really thick though, almost too thick to pipe
