What are the “files/*.md”? Does the api import from a files directory are the same level as the api ? Or is files inside api?
You may need to force those to get built on Netlify by injecting them into the zip it creates.
See Error deploying to Netlify: Cannot find module '../../../.redwood/datamodel.json'
And