Module not found or Internal server error

There is no issue when just develop some doctype/fields. Means only bench migrate is ok.
Then try to add some customized js in public. And it always shows "internal server error’ after execute bench build. Very few times build successfully but same error. Now I try to move js and items of hooks.py and no improvement. Some time it mentioned module not found.
Seems the docker/bench not so steady. Always little difference of each execution.
The problem is where I can find the logs to analysis besides the terminal.
Here is something of docker logs:

  1.              ^^^^^^^^^^^^^^^^^^^^
    

File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1518, in get_module_list

return get_file_items(get_app_path(app_name, "modules.txt"))

                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1483, in get_app_path

return get_pymodule_path(app_name, *joins)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1513, in get_pymodule_path

return abspath(join(dirname(get_module(scrub(modulename)).__file__ or ""), *joins))

                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1454, in get_module

return importlib.import_module(modulename)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “/usr/local/lib/python3.11/importlib/init.py”, line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “”, line 1204, in _gcd_import

File “”, line 1176, in _find_and_load

File “”, line 1140, in _find_and_load_unlocked

ModuleNotFoundError: No module named ‘’
2.