The region specifications are a list of lists. You forgot the outer brackets.
Best, David
(* this *)
Piecewise[{0, x < 1}, {1, x < 2}, {3, x < 3}, {4, x < 4}, {5, True}]
(* should be this *)
Piecewise[{{0, x < 1}, {1, x < 2}, {3, x < 3}, {4, x < 4}, {5, True}}]