Helpdesk fail to build

Why many apps failed to built on latest bench and ERPNext?

I have:

bench: 5.22.9
ERPNext: v15.40.0 (version-15)
Frappe Framework: v15.46.0 (version-15)

I am unable to get-app most of apps like helpdesk, insights, drive while I was able get-app and install-app a few apps like education, gameplan.

On doing:

 bench get-app helpdesk --branch main

Inside docker, by using fm shell mysite.

I get:

ERROR: bench build --app helpdesk
subprocess.CalledProcessError: Command 'bench build --app helpdesk' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/.pyenv/versions/3.11.0/bin/bench", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/opt/.pyenv/versions/3.11.0/lib/python3.11/site-packages/bench/cli.py", line 132, in cli
    bench_command()
  File "/opt/.pyenv/versions/3.11.0/lib/python3.11/site-packages/bench/commands/make.py", line 181, in get_app
    get_app(
  File "/opt/.pyenv/versions/3.11.0/lib/python3.11/site-packages/bench/app.py", line 777, in get_app
    app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
  File "/opt/.pyenv/versions/3.11.0/lib/python3.11/site-packages/bench/utils/render.py", line 126, in wrapper_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/.pyenv/versions/3.11.0/lib/python3.11/site-packages/bench/app.py", line 254, in install
    install_app(
  File "/opt/.pyenv/versions/3.11.0/lib/python3.11/site-packages/bench/app.py", line 925, in install_app
    build_assets(bench_path=bench_path, app=app, using_cached=using_cached)
  File "/opt/.pyenv/versions/3.11.0/lib/python3.11/site-packages/bench/utils/bench.py", line 380, in build_assets
    exec_cmd(command, cwd=bench_path, env=env)
  File "/opt/.pyenv/versions/3.11.0/lib/python3.11/site-packages/bench/utils/__init__.py", line 178, in exec_cmd
    raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: bench build --app helpdesk