What run-time configuration parameters are used for concurrent index creation
In your example, the maintenance_work_mem you have set of 256MB should be seen by the subsequent CREATE INDEX CONCURRENTLY command, because you have changed this GUC inside your session.

In fact, the docs suggest bumping up maintenance_work_mem (as you showed) for just such a purpose.