Such unpleasant problems, you
This is especially true for floor coverings made of wood and if you make the coating close to the wall, then with expansion the material can “swell”. In order to avoid such unpleasant problems, you need to make gaps from 10-15 millimeters that will play a technical role.