Got an error after running the Phoenix app for a few days

I usually hit this error after my app runs for 2–3 days. Looks like the :ets table disappears, then Phoenix.Token.verify fails. Anyone know what might be causing this in a long-running Phoenix app (dev mode)?

Error:

Erlang error: {:exception, :badarg, [{:ets, :lookup, [MyAppWeb.Endpoint, :secret_key_base], [error_info: %{cause: :id, module: :erl_stdlib_errors}]}, {MyAppWeb.Endpoint, :config, 2, [file: ~c"deps/phoenix/lib/phoenix/endpoint.ex", line: 542]}, {Phoenix.Token, :get_endpoint_key_base, 1, [file: ~c"lib/phoenix/token.ex", line: 265]}, {Phoenix.Token, :verify, 4, [file: ~c"lib/phoenix/token.ex", line: 222]}, {MyApp.Service.Token, :verify_token, 3, [file: ~c"lib/account_service/service/token.ex", line: 25]}, {MyApp.Interface.Auth, :valid_token?, 3, [file: ~c"lib/account_service/interface/auth.ex", line: 11]}]}