Black lines around block in TileMap only when project is package

Capture d’écran 2024-10-11 172959
Capture d'écran 2024-10-11 173238

So in the editor there are no black lines thanks to “Apply 2D Settings”, but when I package my project and play it, I have these black lines.
Does anyone know why it doesn’t work when the project is packaged?
Capture d’écran 2024-10-11 173731