Solid food does not help the baby sleep better. Calorie-wise, the initial intake of solids is not sufficient to create a feeling of fullness.
If the baby starts waking up more frequently than usual, it’s safer to give them more formula or breast milk than to introduce them to solids prematurely.