is there anyway to control wal segment naming format. wal segment file is not generating in sequential format.
Not really; however the file names are sequential based on the timeline and log sequence. If you change the WAL segment size then the WAL file name sequence will change; i.e. 16MB vs 128MB WAL files will generate different sequences.
Here’s a article that covers the three parts of the filename; timeline_id, block id, and segment id: