This error is very much self-explanatory.
What do you do in ACF and PACF? You try to find the correlation between the observations with their lagged versions in ACF, and in PACF you do the same with removing the effect of the versions with shorter lags.
So, suppose you have data points x_1, x_2, \dots, x_n.
Then, for lag 1, you find the correlation between (x_1, x_2, \dots, x_{n - 1}) and (x_2, x_3, \dots, x_n), for lag 2, you find the correlation between (x_1, x_2, \dots, x_{n - 2}) and (x_3, x_4, \dots, x_n), and so on.
Note that the number of available pairs of observations and their lagged versions decrease as lag increases, and at lag k, there are n - k pairs. So, if you use higher values of lag than the number of observations (strictly speaking, you can use lag of at most one less than the number of observations), then there's no data available to calculate the correlation and hence you're getting errors.
So, you should have get the desired results by reducing the number of lags. Without any further information, I'll guess that acf2 considers the rows of the data.frame as series and hence it's guessing that they are of length 2. So, you're allowed to use 1 as the maximum lag.
If you want to calculate ACF and PACF for both columns of your dataset, try to use lapply. See below:
library(astsa)
u <- rnorm(n = 360)
v <- rnorm(n = 360)
acf_u <- acf2(series = u)

acf_v <- acf2(series = v)

df <- data.frame(u, v)
acf_df <- lapply(X = df,
FUN = acf2)


all.equal(target = list(u = acf_u, v = acf_v),
current = acf_df)
#> [1] TRUE
Created on 2019-04-18 by the reprex package (v0.2.1)
Hope this helps.