It was impossible with the curve. I tried the Geometry node solution, but I sadly had difficult time making the corners all the same.
I ended up making 4 sine wave objects for the 4 sides, then joining them into one object. It took some time to do it for all 19 columns, but it looks perfect.
Thank you so much for brainstorming with me!
