I finally addressed this issue by downgrading Next.js from 15 to 14. It seems Next.js 15 is not very robust.